home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / Select.h < prev    next >
Encoding:
Text File  |  1996-04-23  |  1.8 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Select.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SELECT_H
  11. #define SELECT_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWSELECT_H
  16. #include "FWSelect.h"
  17. #endif
  18.  
  19. //========================================================================================
  20. //    Forward Declarations
  21. //========================================================================================
  22.  
  23. class CIntlTestPart;
  24. class CIntlTestSelectedContent;
  25. class FW_CString;
  26. class FW_CEditView;
  27.  
  28. //========================================================================================
  29. //    class CIntlTestSelection
  30. //========================================================================================
  31.  
  32. class CIntlTestSelection : public FW_CSelection
  33. {
  34.   public:
  35.     FW_DECLARE_AUTO(CIntlTestSelection)
  36.  
  37.     CIntlTestSelection(Environment* ev, CIntlTestPart* testPart);
  38.     virtual ~CIntlTestSelection();
  39.     
  40.   public:
  41.     virtual void            CloseSelection(Environment* ev);
  42.     virtual void            ClearSelection(Environment* ev);
  43.     virtual FW_Boolean        IsEmpty(Environment* ev) const;
  44.     virtual void            SelectAll(Environment* ev);
  45.  
  46.     virtual FW_CContent*    GetSelectedContent(Environment* ev);
  47.  
  48.     CIntlTestSelectedContent* GetSelectedTestContent();
  49.  
  50.     void SetContentEditView(FW_CEditView* editView);
  51.  
  52.   private:
  53.     CIntlTestPart*                fTestPart;
  54.     CIntlTestSelectedContent*    fSelectedContent;
  55. };
  56.  
  57. //----------------------------------------------------------------------------------------
  58. inline CIntlTestSelectedContent* CIntlTestSelection::GetSelectedTestContent()
  59. {
  60.     return fSelectedContent;
  61. }
  62.  
  63. #endif
  64.